/**
 * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 */

package com.iwindplus.mgt.domain.dto.system;

import com.iwindplus.boot.domain.validation.EditGroup;
import com.iwindplus.boot.domain.validation.SaveGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 服务批量保存或修改数据传输对象.
 *
 * @author zengdegui
 * @since 2019/8/23
 */
@Schema(description = "服务批量保存或修改数据传输对象")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ServerSaveEditBatchDTO implements Serializable {
    /**
     * 服务集合.
     */
    @Schema(description = "服务集合")
    @Valid
    @NotEmpty(message = "{entities.notEmpty}", groups = {SaveGroup.class, EditGroup.class})
    private List<ServerDTO> entities;
}
